﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data.DataBase;
using Business.Entities;

namespace Business.Logic
{
    public class PlanLogic : BusinessLogic
    {
        private PlanAdapter _planData;

        public PlanAdapter PlanData
        {
            get { return _planData; }
            set { _planData = value; }
        }

        public PlanLogic()
        {
            _planData = new PlanAdapter();
        }

        public override Plan GetOne(int id)
        {
            return this._planData.GetOne(id);
        }

        public override List<Plan> GetAll()
        {
            return this._planData.GetAll();
        }

        public override void Save(Business.Entities.Plan pl)
        {
            this._planData.Save(pl);
        }

        public override void Delete(int id)
        {
            this._planData.Delete(id);
        }
    }
}
